package com.yzt.act.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yzt.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 事件概述表
 * </p>
 *
 * @author Y
 * @since 2021-04-08
 */
@TableName("act_evection")
@ApiModel(value="Evection对象", description="事件概述表")
public class Evection extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户主键ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "事件名称")
    @TableField("evection_name")
    private String evectionName;

    @ApiModelProperty(value = "开始时间")
    @TableField("begin_date")
    private String beginDate;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_date")
    private String endDate;

    @ApiModelProperty(value = "事件所需时间(天)")
    @TableField("day")
    private Integer day;

    @ApiModelProperty(value = "状态 0开始 1结束 2取消")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "事件原因")
    @TableField("reson")
    private String reson;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getEvectionName() {
        return evectionName;
    }

    public void setEvectionName(String evectionName) {
        this.evectionName = evectionName;
    }
    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }
    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }
    public Integer getDay() {
        return day;
    }

    public void setDay(Integer day) {
        this.day = day;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getReson() {
        return reson;
    }

    public void setReson(String reson) {
        this.reson = reson;
    }

    @Override
    public String toString() {
        return "Evection{" +
            "userId=" + userId +
            ", evectionName=" + evectionName +
            ", beginDate=" + beginDate +
            ", endDate=" + endDate +
            ", day=" + day +
            ", status=" + status +
            ", reson=" + reson +
        "}";
    }
}
